﻿<%@ Page Language="C#" MasterPageFile="~/JOINT/MstPage_JOINT.master" AutoEventWireup="true"
    CodeFile="frmJ_TestResultInput.aspx.cs" Inherits="JOINT_frmJ_TestResultInput"
    Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    テスト結果一括登録
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <link href="../Style/JsStyle.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../js/jquery.min.js"></script>

    <script src="../js/Validation.js" type="text/javascript"></script>
    
    <script language="JavaScript" type="text/javascript">
        $(document).ready(function() {

            registerControlToValidation("validation");
            registerEnterEvent("next_control", "<%= btn完了.ClientID %>", 5);
            formatDate("css_text_calender", "/");
            $('.default').each(function() {
                var default_value = this.value;
                $(this).css('color', '#666');
                $(this).focus(function() {
                    if (this.value == default_value) {
                        this.value = '';
                        $(this).css('color', '#333');
                    }
                });
                $(this).blur(function() {
                    if (this.value == '') {
                        $(this).css('color', '#666');
                        this.value = default_value;
                    }
                });
            });

        });

        function Validnumber(oSrc, args) {
            if (args.valueOf != "") {
                if (!checkNumber(args.Value)) {
                    args.IsValid = false;
                }
                else args.IsValid = true;
            } 
        }
        function checkNumber(datainput) {
            if (datainput == "00" || datainput == "000")
                return false;
            if (datainput < 0 || datainput > 100)
                return false;
            else
                return true;
        }
    </script>
    <style type="text/css">
        .css_calender
        {
            ime-mode: disabled;
        }
    </style>
    <div class="maindiv1">
        <br />
        <br />
        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
            <ContentTemplate>
                <div runat="server" id="面接日" class="detail-admin-row">
                    <span class="detail-admin-label">面接日:</span>
                    <asp:DropDownList ID="ddl_面接日" runat="server" CssClass=" next_control dropdownlist width2"
                        AutoPostBack="true" Font-Names="MS UI Gothic" OnSelectedIndexChanged="ddl_面接日_SelectedIndexChanged">
                        <asp:ListItem Value="-1" Selected="true">[選択]</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;<div class="detail-admin-row" runat="server" id="div2">
                    </div>
                </div>
                <div runat="server" id="div応募者" class="detail-admin-row">
                    <span class="detail-admin-label">応募者:</span>
                    <asp:DropDownList ID="ddl応募者" runat="server" AutoPostBack="true" CssClass=" validation next_control dropdownlist width2"
                        Font-Names="MS UI Gothic" OnSelectedIndexChanged="ddl応募者_SelectedIndexChanged">
                        <asp:ListItem Value="-1" Selected="true">[選択]</asp:ListItem>
                    </asp:DropDownList>
                    <span class="required-field">*</span>
                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator応募者" ControlToValidate="ddl応募者"
                        Display="None" InitialValue="-1" ErrorMessage="">
                    </asp:RequiredFieldValidator>
                    <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender3"
                        TargetControlID="RequiredFieldValidator応募者" HighlightCssClass="invalid" Width="240px"
                        CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
                </div>
                <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                    <Triggers>
                        <asp:PostBackTrigger ControlID="ddl応募者" />
                    </Triggers>
                </asp:UpdatePanel>
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <Triggers>
                        <asp:PostBackTrigger ControlID="ddl_面接日" />
                    </Triggers>
                </asp:UpdatePanel>
                <div class="Header1frmJ_TestResultInput">
                </div>
                <div>
                    <span style="padding-right: 400px">数学テスト結果</span>
                </div>
                <div class="detail-admin-row" runat="server" id="div_点数">
                    <span class="detail-admin-label">点数（100点中）</span>
                    <asp:TextBox ID="txt点数" runat="server" ValidationGroup="detailForm" Font-Names="MS UI Gothic"
                        CssClass=" validation next_control css_calender textbox width2" onkeypress="return InputNumberKeys(this, event)"
                        MaxLength="3"></asp:TextBox>
                    <span>点</span><span class="required-field">*</span>
                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator点数" ControlToValidate="txt点数"
                        Display="None" ErrorMessage="">
                    </asp:RequiredFieldValidator>
                    <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender31"
                        Width="240px" TargetControlID="RequiredFieldValidator点数" HighlightCssClass="invalid"
                        CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
                    <asp:CustomValidator ID="CustomValidator点数" runat="server" ErrorMessage="" ClientValidationFunction="Validnumber"
                        ControlToValidate="txt点数" Display="None"></asp:CustomValidator>
                    <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender11"
                        TargetControlID="CustomValidator点数" HighlightCssClass="invalid" CssClass="CustomValidatorCalloutStyle"
                        Width="240px" WarningIconImageUrl="../Images/warning.png" />
                </div>
                <div class="detail-admin-row" runat="server" id="div1">
                    <span class="detail-admin-label">回答率</span>
                    <asp:TextBox ID="txt回答率" runat="server" Font-Names="MS UI Gothic" ValidationGroup="detailForm"
                        CssClass=" validation next_control css_calender textbox width2" MaxLength="3" onkeypress="return InputNumberKeys(this, event)"></asp:TextBox>
                    <span>&nbsp;% </span><span class="required-field">*</span>
                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator回答率" ControlToValidate="txt回答率"
                        Display="None" ErrorMessage="">
                    </asp:RequiredFieldValidator>
                    <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender1"
                        Width="240px" TargetControlID="RequiredFieldValidator回答率" HighlightCssClass="invalid"
                        CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
                    <asp:CustomValidator ID="CustomValidator回答率" runat="server" ErrorMessage="" ClientValidationFunction="Validnumber"
                        ControlToValidate="txt回答率" Display="None"></asp:CustomValidator>
                    <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender4"
                        TargetControlID="CustomValidator回答率" HighlightCssClass="invalid" CssClass="CustomValidatorCalloutStyle"
                        Width="240px" WarningIconImageUrl="../Images/warning.png" />
                </div>
                <div class="detail-admin-row" id="div性格診断結果">
                    <span class="detail-admin-label">性格診断結果</span>
                </div>
                <div class="detail-admin-row">
                    <span style="padding-left: 240px">
                        <asp:TextBox ID="txt性格診断結果" runat="server" Font-Names="MS UI Gothic" ValidationGroup="detailForm"
                            CssClass=" validation next_control textbox width2"></asp:TextBox></span> <span class="required-field">
                                *</span>
                    <asp:RequiredFieldValidator runat="server" ID="RequiredFieldValidator性格診断結果" ControlToValidate="txt性格診断結果"
                        Display="None" ErrorMessage="">
                    </asp:RequiredFieldValidator>
                    <ajaxToolkit:ValidatorCalloutExtender runat="Server" ID="ValidatorCalloutExtender2"
                        Width="240px" TargetControlID="RequiredFieldValidator性格診断結果" HighlightCssClass="invalid"
                        CssClass="CustomValidatorCalloutStyle" WarningIconImageUrl="../Images/warning.png" />
                </div>
            </ContentTemplate>
        </asp:UpdatePanel>
        <br />
        <br />
        <div class="detail-admin-row" style="margin-left: 300px">
            <asp:Button ID="btn完了" runat="server" Text="完了" CssClass="btn" OnClick="btn完了_Click"
                OnClientClick="javascript:focusToControlErr();" />
            <asp:Button ID="btnキャンセル" runat="server" Text="キャンセル" CssClass="btn" CausesValidation="false"
                OnClick="btnキャンセル_Click" />
        </div>
        <%-- <div class="maindiv1">
    
        <div class="detail-admin-row7" style="margin-top:60px">
            <span class="detail-admin-label" >数学テスト結果</span>
        
        </div>
        <div class="detail-admin-row7">
            <span class="detail-admin-label" style="padding-left:60px" >点数（100点中）</span>
            <asp:TextBox ID="text1" runat="server"></asp:TextBox>
        </div>
        <div class="detail-admin-row7">
            <span class="detail-admin-label" style="padding-left:60px" >回答率</span>
            <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        </div>
        <div class="detail-admin-row7" style="margin-top:10px">
            <span class="detail-admin-label" style="padding-left:40px" >性格診断結果</span>
        </div>
         <div class="detail-admin-row7">
               <span style="padding-left:195px"> <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox></span>
         </div>
         <div class="div_height20" style="margin-top:30px;padding-left:250px">
            <asp:Button ID="bt1"  runat="server" Text="キャンセル"  CssClass="btn"  />
            <asp:Button ID="Button1"  runat="server" Text="完了"  CssClass="btn"  />
         </div>--%>
    </div>
    </div>
</asp:Content>
